<?php
class Greeting_Controller extends Dig_Applet_Controller 
{
    public $name;
    public $greeting;
    
    public function onLoad()
    {
        $this->view->greeting = $this->greeting . ' ' . $this->name;
    }
    
    public function onPost()
    {
        // if the applet has a form that posts back
        // you would process it here
    }
}
?>